package cs236369.webserver;

public class a implements TSPI {
	public void generateHtml(java.util.HashMap<String, String> params,
			Session session, java.io.PrintStream out)
			throws java.lang.Exception {
		out.print(java.net.URLDecoder
				.decode("%3Chtml%3E%0A+++++%3Chead%3E%0A++++++++++%3Ctitle%3ENumbers%3C%2Ftitle%3E%0A+++++%3C%2Fhead%3E%0A%0A+++++%3Cbody%3E%0A+++++%3Cp%3E",
						"UTF-8"));
		out.print(new java.util.Date());
		out.print(java.net.URLDecoder.decode(
				"%3C%2Fp%3E%0A+++++%3Ch1%3EHello+", "UTF-8"));
		out.print(params.get("name"));
		out.print(java.net.URLDecoder
				.decode("%21%3C%2Fh1%3E%0A+++++%3Ch2%3EThe+numbers+1+to+10%3A%3C%2Fh2%3E%0A+++++%3Cul%3E+",
						"UTF-8"));
		int i;
		for (i = 1; i <= 10; ++i) {
			out.print(java.net.URLDecoder.decode(
					"%09+++++%09%0A+++++%09%09%09%3Cli%3ENumber+", "UTF-8"));
			out.print(i);
			out.print(java.net.URLDecoder.decode("%3C%2Fli%3E+%0A+++++%09++",
					"UTF-8"));
		}
		out.print(java.net.URLDecoder.decode(
				"%0A+++++%3C%2Ful%3E+%0A+++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E",
				"UTF-8"));

	}
}